
#pragma once

class CFfFileSink : public IFileSinkFilter
{
public:
	CFfFileSink();
	virtual ~CFfFileSink();
	
	// IUnkonwn
	STDMETHODIMP_(ULONG) AddRef();
	STDMETHODIMP_(ULONG) Release();
	STDMETHODIMP  QueryInterface(REFIID riid, void **ppvObject);	

	//IFileSinkFilter
	STDMETHODIMP SetFileName(LPCOLESTR pszFileName,const AM_MEDIA_TYPE *pmt);
	STDMETHODIMP GetCurFile(LPOLESTR * ppszFileName,AM_MEDIA_TYPE *pmt);

	//helper
	char* GetCurFile();

private:
	wchar_t* m_pszFileName;//output media file name
	char* m_pszfileA;
};
